<template>
    <div>
        markdown测试
     <div>
            <textarea v-model="content"/>
     </div>
        
         <div v-highlight v-html="markdown"></div>

    </div>
</template>

<script>
import markdownIt from 'markdown-it'

export default {
    components: {
    },
    data(){
        return {
            content: '',
        }
    },
  
  computed:{
      markdown(){
          let md = new markdownIt();
          let result = md.render(this.content)
          return result
      }
  },
  created(){
  },
  methods:{
      
  }
}
</script>


<style scoped>

</style>